#!/bin/bash
# Send files to a remote host

if [ -n "$3" ] 
then 
	_host=$1
	_port=$2
else  
	echo "Usage: $0 [host] [port] [files...]"
	exit 1
fi

shift 2

tar -cvz "$@" | pv | nc6 --half-close $_host $_port && echo "Transfer complete."

